package com.meng.android.component;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import com.meng.android.util.R;
import com.meng.android.util.UIUtils;

public class RowHeaderSection extends TextView {

	public RowHeaderSection(Context context) {
		super(context);
	}

	public RowHeaderSection(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public RowHeaderSection(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	public static RowHeaderSection create(final Context context, String header) {
		RowHeaderSection mTextView = (RowHeaderSection) UIUtils.inflater(
				context).inflate(R.layout.row_header_section, null);
		mTextView.setText(header);
		return mTextView;
	}

}